.test{
    &:before,&:after{
        clear: both;
        visibility: hidden;
        font-size: 0;
        height: 0;
        content: " ";
        display: table;
    }
    display: inline-block;
}

